From: Andrew Cooper Date: Mon, 10 Mar 2014 17:06:16 +0000 (+0000) Subject: tools/xcutils: Free xtl loggers after use X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5490 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=dd2ef9d50d89c49e57d68318422b4ed2c2d426d5;p=xen.git tools/xcutils: Free xtl loggers after use While not much of a functional change, this prevents irritating warnings from valgrind when trying to analyse xc_domain_{save,restore}() themselves. Signed-off-by: Andrew Cooper CC: Ian Campbell Acked-by: Ian Jackson --- diff --git a/tools/xcutils/xc_restore.c b/tools/xcutils/xc_restore.c index 4ea261b708..616bd42177 100644 --- a/tools/xcutils/xc_restore.c +++ b/tools/xcutils/xc_restore.c @@ -67,6 +67,7 @@ main(int argc, char **argv) } xc_interface_close(xch); + xtl_logger_destroy(l); return ret; } diff --git a/tools/xcutils/xc_save.c b/tools/xcutils/xc_save.c index e34bd2c854..45ad0ce253 100644 --- a/tools/xcutils/xc_save.c +++ b/tools/xcutils/xc_save.c @@ -222,6 +222,7 @@ main(int argc, char **argv) xc_evtchn_close(si.xce); xc_interface_close(si.xch); + xtl_logger_destroy(l); return ret; }